package com.youku.expression.ast;

import com.youku.expression.Token;
import com.youku.expression.environment.Environment;

public abstract class PrimaryAst extends Ast {

	public PrimaryAst(Token token, Ast... asts) {
		super(token, asts);
	}

	@Override
	public Object eval(Environment environment) {
		return getPrimaryValue(); 
	}

	protected abstract Object getPrimaryValue() ;

}
